﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterHome.Master" AutoEventWireup="true" CodeBehind="KetQuaTimKiem.aspx.cs" Inherits="EC21_EDiamond.WebForm1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="header" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    
    <div style="align-content:center">
        <asp:TextBox ID="txtim" runat="server" BorderColor="Black" BorderStyle="Double"></asp:TextBox>
        <asp:DropDownList ID="ddlloaisp" runat="server"></asp:DropDownList>
        <asp:DropDownList ID="ddlthuonghieu" runat="server"></asp:DropDownList>
        <asp:DropDownList ID="ddlgia" runat="server"></asp:DropDownList>
        <asp:Button ID="btntim" runat="server" Text="Search" BackColor="#003399" ForeColor="White" Height="25px" Width="82px" OnClick="btntim_Click" />
    <asp:DataList ID="DataList1" runat="server"  CellSpacing="50" RepeatColumns="6" Font-Names="Segoe UI">
        <EditItemStyle BorderColor="White" Font-Names="Segoe UI Light" Font-Size="Larger" Width="50px" />
    <ItemTemplate>
        <asp:Image ID="Image1" runat="server" Height="115px" Width="132" ImageUrl='<%# Eval("HinhAnh") %>'/>
        <br />
        TenSP:
        <asp:Label ID="TenSPLabel" runat="server" Text='<%# Eval("TenSP") %>' />
        <br />
        Giagoc:
        <asp:Label ID="GiagocLabel" runat="server" Text='<%# Eval("Giagoc") %>' />
        <br />
        GiaKM:
        <asp:Label ID="GiaKMLabel" runat="server" Text='<%# Eval("GiaKM") %>' />
        <br />
        <%--HinhAnh:
        <asp:Label ID="HinhAnhLabel" runat="server" Text='<%# Eval("HinhAnh") %>' />--%>
        <br />
    </ItemTemplate>
</asp:DataList>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="TimKiemSanPhamTheoTen" TypeName="BUS.SanPhamBUS">
    <SelectParameters>
        <asp:QueryStringParameter Name="tensp" QueryStringField="tensp" Type="String" />
    </SelectParameters>
</asp:ObjectDataSource>
        <%--<asp:DataList ID="DataList2" runat="server" DataSourceID="ObjectDataSource2" CellSpacing="50" RepeatColumns="6" Font-Names="Segoe UI">
            <ItemTemplate>
                <asp:Image ID="Image2" runat="server" Height="115px" Width="132" ImageUrl='<%# Eval("HinhAnh") %>' />
                <br />
                TenSP:
                <asp:Label ID="TenSPLabel" runat="server" Text='<%# Eval("TenSP") %>' />
                <br />
                Giagoc:
                <asp:Label ID="GiagocLabel" runat="server" Text='<%# Eval("Giagoc") %>' />
                <br />
                GiaKM:
                <asp:Label ID="GiaKMLabel" runat="server" Text='<%# Eval("GiaKM") %>' />
                <br />
            </ItemTemplate>
        </asp:DataList>--%>
        <br />
        <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="TimKiemSanPham" TypeName="BUS.SanPhamBUS">
            <SelectParameters>
                <asp:QueryStringParameter Name="tensp" QueryStringField="tensp" Type="String" />
                <asp:QueryStringParameter Name="madm" QueryStringField="madm" Type="Int32" />
                <asp:QueryStringParameter Name="math" QueryStringField="math" Type="Int32" />
                <asp:QueryStringParameter Name="gia" QueryStringField="gia" Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
</div>
</asp:Content>
